package com.zretc.entity;

import java.util.List;

/**
 * 订单（包裹）类
 *
 * @author: bLUeSuMMerDreamer
 * @createTime: 2020-07-21 11:05
 */
public class Order {
    //订单ID
    private String orderId;
    //费用
    private Double cost;
    //包裹类型
    private Type type;
    //重量
    private Double weight;
    //收件地址
    private AddressInfo receiveId;
    //寄件地址
    private AddressInfo sendId;
    //备注
    private String comment;
    //订单（包裹）状态
    private Integer state;
    //终点仓库
    private House endHouse;
    //物流信息列表
    private List<Track> tracks;

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", cost=" + cost +
                ", typeId='" + type + '\'' +
                ", weight=" + weight +
                ", receiveId=" + receiveId +
                ", sendId=" + sendId +
                ", comment='" + comment + '\'' +
                ", state=" + state +
                ", endHouse=" + endHouse +
                ", tracks=" + tracks +
                '}';
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Double getCost() {
        return cost;
    }

    public void setCost(Double cost) {
        this.cost = cost;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public List<Track> getTracks() {
        return tracks;
    }

    public void setTracks(List<Track> tracks) {
        this.tracks = tracks;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public AddressInfo getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(AddressInfo receiveId) {
        this.receiveId = receiveId;
    }

    public AddressInfo getSendId() {
        return sendId;
    }

    public void setSendId(AddressInfo sendId) {
        this.sendId = sendId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public House getEndHouse() {
        return endHouse;
    }

    public void setEndHouse(House endHouse) {
        this.endHouse = endHouse;
    }

    public Order(String orderId, Double cost, Type type, Double weight, AddressInfo receiveId, AddressInfo sendId, String comment, Integer state, House endHouse) {
        this.orderId = orderId;
        this.cost = cost;
        this.type = type;
        this.weight = weight;
        this.receiveId = receiveId;
        this.sendId = sendId;
        this.comment = comment;
        this.state = state;
        this.endHouse = endHouse;
    }

    public Order(String orderId, Double cost, Type type, Double weight, AddressInfo receiveId, AddressInfo sendId, String comment, Integer state, House endHouse, List<Track> tracks) {
        this.orderId = orderId;
        this.cost = cost;
        this.type = type;
        this.weight = weight;
        this.receiveId = receiveId;
        this.sendId = sendId;
        this.comment = comment;
        this.state = state;
        this.endHouse = endHouse;
        this.tracks = tracks;
    }

    public Order() {
    }
}
